{extend name="public/base" /} {block name="body"}
<div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li><strong>分类列表</strong></li>
	</ol>
</div>
<div class="ibox float-e-margins">
		<div class="ibox-content">
		<div class="row">
				<form class="form-horizontal m-t" method="post" action="{:url('index')}">					
					<div class="row"> 
        				 <div class="form-group" style="padding-left: 50px;">
                         	分类名称 <input type="text" id="name" name="name"  placeholder="请输入关键词" class="bank">&nbsp;&nbsp;&nbsp; 
                         	商家名称 <input type="text" id="store_name" name="store_name"  placeholder="请输入关键词" class="bank">
                      	 	时间 <input id='start_time' name='start_time'  style="width: 100px;" onclick='WdatePicker()' type='text' placeholder="开始时间" class="bank" />
							<input id='end_time' name='end_time'  style="width: 100px;" onclick='WdatePicker()' type='text' placeholder="结束时间" class="bank" />
                            <span class="bank"><button type="submit" class="btn btn-sm btn-primary" style="margin-left: 10px;">&nbsp;<li class="fa fa-search"> 搜索</li></button> </span>
                        </div>
        			</div>
        		</form>
        	<div class="hr-line-dashed"></div>
        	<div class="example-wrap">
                <div class="example">
					<table class="table table-bordered table-hover">
						<thead>
							<tr class="long-th">
								<th width="50">ID</th>
								<th>分类名称</th>							
								<th>商家名称</th>
								<th>添加时间</th>							
								<th>操作</th>
							</tr>
						</thead>
						<tbody>
							{foreach name="list" item="vo"}
							<tr>
								<td class="text-center">{$vo.id}</td>
								<td>{$vo.name}</td>
								<td>{$vo.store_name}</td>							
								<td class="text-center">{$vo.add_time}</td>							
								<td class="text-center">
									<a href="{:url('edit',['id'=>$vo.id])}" class="btn btn-primary bnt-sm">
										<i class="fa fa-paste"></i> 编辑</a>&nbsp;&nbsp;
									<a href="{:url('delete',['id'=>$vo.id])}" class="btn btn-danger bnt-sm ajax-delete">
										<i class="fa fa-trash-o"></i> 删除</a>
								</td>
							</tr>
							{/foreach}
						</tbody>
					</table>
			 	<div style="text-align: right;">
                  {$list->render()}
                </div>
			</div>
		</div>
	</div>
</div>
</div>
{/block} {block name="script"}
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script>
	</script>
<style>
.bank{
	width: 150px;
    height:30px;
    text-align:center;
    border-radius:5px;
}
</style>

{/block}
